package net.xmmpp.uc.im.gateway.loadbalancer;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 一致性哈希负载算法的配置
 * </p>
 *
 */
@Component
@ConfigurationProperties(prefix = "application")
public class ConsistentHashingProperties {
    /**
     * 使用一致性哈希负载算法分配服务节点的uri
     */
    private Set<String> consistentHashingUrls;

    public Set<String> getConsistentHashingUrls() {
        return consistentHashingUrls;
    }

    public void setConsistentHashingUrls(Set<String> consistentHashingUrls) {
        this.consistentHashingUrls = consistentHashingUrls;
    }
}
